package com.finalcial.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.finalcial.dao.CompanyDao;
import com.finalcial.model.Company;
import com.finalcial.service.CompanyService;

@Service
public class CompanyServiceImpl implements CompanyService {
	@Autowired
	private CompanyDao companyDao;
	
	/**
	 * 通过公司名查询公司信息
	 * @param companyName 公司名
	 * @return
	 */
	@Override
	public Company getCompanyByName(String companyName) {
		return companyDao.getCompanyByName(companyName);
	}

}
